﻿using System.Data;
using System.Drawing.Printing;
    
namespace ConfExpert.Forms.Depo.Tela
{
    public partial class TelaBarkodAlt : DevExpress.XtraReports.UI.XtraReport
    {
        public TelaBarkodAlt()
        {
            InitializeComponent();
        }
        public void SetData(DataTable dt)
        {
            myData.xEtiketTelaAlt.Merge(dt);
        }

        private void GroupHeader1_BeforePrint(object sender, PrintEventArgs e)        
        {
            lblHeader.Visible = (myData.xEtiketTelaAlt.Select("RollId = " + prmRoll.Value.ToString(), "").Length > 0);            
        }
    }
}
